package boot.spring.mapper;

import java.util.List;

import boot.spring.po.Role;
import boot.spring.po.Role_permission;
import boot.spring.po.User_role;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RoleMapper {
    List<Role> getRoles();

    void adduserrole(User_role ur);

    Role getRoleidbyName(String rolename);

    List<Role> getRoleinfo();

    void addRole(Role role);

    void addRolePermission(Role_permission rp);

    void deleterole(int rid);

    void deleterole_permission(int roleid);

    void deleteuser_role(int roleid);

    Role getRolebyid(int rid);
}
